<template>
  <div id="app">
    <!-- <div>我是顶部的导航栏</div>
    <div>我是侧边栏的导航栏</div> -->
    <router-view/>
    <!-- <p v-for="phone in phones" :key="phone.name">{{phone.name}}</p> -->
    <!-- <p>当前页面是{{Newnum}}</p>
    <page @change-page="pageHandler"></page> -->
  </div>
</template>

<script>
import hello from './components/HelloWorld'
import page from './components/pagination'
export default {
  name: 'App',
  data(){
    return {
      Newnum:1,
      phones:[
        {
          name:'MI 8',
          val:9999
        },
        {
          name:'MI 11',
          val:9999
        },
        {
          name:'MI',
          val:9999
        }
      ]
    }
  },
  components:{
    hello:hello,
    // hello
    page
  },
  methods:{
    pageHandler(num){
      this.Newnum=num
    }
  }
}

</script>

<style>
*{
  margin: 0;
  padding: 0;
}
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;

}
</style>
